/* $Id: party.cc jjs $ */
/*
   Copyright (C) 2007 by Jurjen Stellingwerff <jurjen@stwerff.xs4all.nl>
   Part of the Moros Project http://moros.sourceforge.net/

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License version 2 or any
   later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY.

   See the COPYING file for more details.
*/
#define DEBUG_ROUTINE "party"

#include "party.h"
#include "../general/log.h"

void party::save(channel *ch)
{
	ch->write("party", name);
	ch->write("desc", description);
}

party load_party(channel *ch) {
	party res;
	if (ch->key=="party") {
		res.name=ch->value;
		if (ch->peek("desc")) {
			ch->next();
			res.description=ch->value;
		}
	}
	return res;
}
